package com.jxd.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ticket_info")
public class TicketInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    private int empno;

    @TableField("departure_point")
    private String departurePoint;

    @TableField("arrival_location")
    private String arrivalLocation;

    @TableField("departure_time")
    private String departureTime;

    @TableField("arrival_time")
    private String arrivalTime;

    private String type;

    private String instruction;

    @TableField("vehicle_id")
    private int vehicleId;

    private int reimbursement;

    private String photo;

    @TableField("travel_info_id")
    private int travelInfoId;

    public TicketInfo(int empno, String departurePoint, String arrivalLocation, String departureTime, String arrivalTime, String type, String instruction, int vehicleId, int reimbursement, String photo, int travelInfoId) {
        this.empno = empno;
        this.departurePoint = departurePoint;
        this.arrivalLocation = arrivalLocation;
        this.departureTime = departureTime;
        this.arrivalTime = arrivalTime;
        this.type = type;
        this.instruction = instruction;
        this.vehicleId = vehicleId;
        this.reimbursement = reimbursement;
        this.photo = photo;
        this.travelInfoId = travelInfoId;
    }
}
